<?php

class Reservations_RequestSuccessView extends SrsReservationsBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->user->setFlash('Żądanie rezerwacji zostało dodane.');

   	if ($rd->hasParameter('referer'))
		{
			return $this->redirectUrl($rd->getParameter('referer'));
   	}
		else
		{
			return $this->redirect('reservations.read', array('hall' => $rd->getParameter('hall'), 'id' => $rd->getParameter('id')));
   	}
	}
}